package com.tongqin.distributed;

import com.tongqin.distributed.api.IHello;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yuantongqin
 * @date 2018/8/29 下午3:11
 */
@RestController
public class HelloController {

    //@Reference(url = "dubbo://127.0.0.1:20880")
    private IHello hello;

    @GetMapping("/hello")
    public String hello(){
        String sayHello = hello.sayHello("你好");
        System.out.println(sayHello);
        return sayHello;
    }
}
